package com.collect.senegal.zhiBean.zhiReceive;

import com.collect.senegal.zhiUtils.StringUtil;

import java.io.Serializable;
import java.util.ArrayList;

public class ZHIRPerformanceListEntity implements Serializable {
    private ZHIRPerformanceMonthEntity monthData;
    private ZHIRPerformanceTodayEntity todayData;
    private ArrayList<ZHIRPerformanceDayDetailEntity> monthDetailData;

    private ZHIRPerformanceRankEntity rankData;

    private String partRepayNum;

    //v2
    private String yellowCard;
    private String flower;
    private String totalRankNums;
    private String rank;

    public ZHIRPerformanceMonthEntity getMonthData() {
        if (monthData == null) {
            monthData = new ZHIRPerformanceMonthEntity();
        }
        return monthData;
    }

    public void setMonthData(ZHIRPerformanceMonthEntity monthData) {
        this.monthData = monthData;
    }

    public ZHIRPerformanceTodayEntity getTodayData() {
        if (todayData == null) {
            todayData = new ZHIRPerformanceTodayEntity();
        }
        return todayData;
    }

    public void setTodayData(ZHIRPerformanceTodayEntity todayData) {
        this.todayData = todayData;
    }

    public ArrayList<ZHIRPerformanceDayDetailEntity> getMonthDetailData() {
        if (monthDetailData == null) {
            monthDetailData = new ArrayList<>();
        }
//        if(monthDetailData.size()==0){
//            for(int i=0;i<31;i++){
//                ZHIPerformanceDayDetailEntity zhiPerformanceDayDetailEntity = new  ZHIPerformanceDayDetailEntity();
//                zhiPerformanceDayDetailEntity.setLeven("B1");
//                zhiPerformanceDayDetailEntity.setAssignNum("100");
//                zhiPerformanceDayDetailEntity.setRepayNum("50");
//                zhiPerformanceDayDetailEntity.setAssignDate("01/06");
//                zhiPerformanceDayDetailEntity.setRepayNumRate("50%");
//                monthDetailData.add(zhiPerformanceDayDetailEntity);
//            }
//        }
        return monthDetailData;
    }

    public void setMonthDetailData(ArrayList<ZHIRPerformanceDayDetailEntity> monthDetailData) {
        this.monthDetailData = monthDetailData;
    }

    public ZHIRPerformanceRankEntity getRankData() {
        if (rankData == null) {
            rankData = new ZHIRPerformanceRankEntity();
        }
        return rankData;
    }

    public void setRankData(ZHIRPerformanceRankEntity rankData) {
        this.rankData = rankData;
    }

    public String getPartRepayNum() {
        return StringUtil.safeString(partRepayNum);
    }

    public void setPartRepayNum(String partRepayNum) {
        this.partRepayNum = partRepayNum;
    }


    public String getYellowCard() {
        return StringUtil.safeString(yellowCard);
    }

    public String getYellowCardFormat() {
        return StringUtil.numberTothousandFormatter(getYellowCard());
    }

    public void setYellowCard(String yellowCard) {
        this.yellowCard = yellowCard;
    }

    public String getFlower() {
        return StringUtil.safeString(flower);
    }

    public String getFlowerFormat() {
        return StringUtil.numberTothousandFormatter(getFlower());
    }

    public void setFlower(String flower) {
        this.flower = flower;
    }

    public String getTotalRankNums() {
        return StringUtil.safeString(totalRankNums);
    }

    public void setTotalRankNums(String totalRankNums) {
        this.totalRankNums = totalRankNums;
    }

    public String getRank() {
        return StringUtil.safeString(rank);
    }

    public void setRank(String rank) {
        this.rank = rank;
    }
}
